#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int x;
	char c[10005]="";
	scanf("%d", &x);
	int ans = x / 2;
	int top = 0;
	int sum = ans;
	while (sum > 0)
	{
		int tmp = sum % 10;
		c[top] = tmp + 'a';
		top++;
		sum /= 10;
	}
	int k=0;
	char s[10005] ="";
	for (int k = 0; k < top; k++)
	{
		s[k] = c[top - k - 1];
	}
	printf("%d %s", ans, s);
	return 0;
}